<?
//inculde即可以使用data数据。本页所有的data数据，倾在controller都处理好
include_once("../../../../config.php");
include_once("../controller/receive_member.php");
?>






<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <link href="../asset/css/member.css"      rel="stylesheet" type="text/css"/>
</head>



<body class="reveive_member">



<div >
<h1> 联系人信息 </h1>




    <div class="detail-box member-edit-box layui-form">

        <div class="detail-boxes">
            <div class="detail-boxing">


                <div class="info">
                    <div>

                        <text>下次联系 <?echo substr($data['member']['checkpoint'],0,10)?> / </text>
                        <text class="state">
                                    <span style="color: <? if(count_days(date("Y-m-d"),$data['member']['checkpoint']) < 15 ) { echo "red";}?>">
                                    <?echo count_days(date("Y-m-d"),$data['member']['checkpoint'])?> 日
                                    </span>
                        </text>
                    </div>
                </div>

                <form id="edit-member-form" method="post"
                      action="detail-edit-function.php"
                      enctype="multipart/form-data" class="layui-form">


                    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                        <ul class="layui-tab-title">
                            <li class="layui-this">详细资料</li>

                        </ul>
                        <div class="layui-tab-content"  >



                            <div class="layui-tab-item layui-show">






                                <div class="layui-form-item">
                                    <label class="layui-form-label">姓名 : <? echo $data['member']['name']?></label>

                                </div>


                                <div class="layui-form-item">
                                    <label class="layui-form-label">微信 :  <? echo $data['member']['weixin']?></label>

                                </div>

                                <div class="layui-form-item">
                                    <label class="layui-form-label">邮箱 : <? echo $data['member']['email']?></label>
                                </div>



                                <div class="layui-form-item">
                                    <label class="layui-form-label">职务 : <? echo $data['member']['position']?></label>

                                </div>



                                <div class="layui-form-item">
                                    <label class="layui-form-label">所属单位 : <? echo  $unit['name']?></label>

                                </div>













                                <div class="layui-form-item">
                                    <label class="layui-form-label">电话 : <? echo $data['member']['phone']?></label>

                                </div>














                                <hr/>

                                <?
                                for($i=0;$i<count($contact_log);$i++){ ?>

                                    <div class="layui-timeline">
                                        <div class="layui-timeline-item">

                                            <div class="layui-timeline-content layui-text">
                                                <h3 class="layui-timeline-title"><? echo $contact_log[$i]['date']; ?></h3>
                                                <div class="loglist">
                                                    <div >
                                                        <? echo $employee_list_1d_array[$contact_log[$i]['excutor']]; ?>
                                                        |  <? echo $contact_log[$i]['contact_way']; ?>
                                                        <? echo $data['member']['name']; ?>

                                                    </div>

                                                    <div class="content">联系内容：<? echo $contact_log[$i]['content']; ?></div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>



                                <? } ?>
                            </div>



                        </div>
                    </div>



                </form>






            </div>
        </div>
    </div>





<!--content端點01-->
</div>


</body>




</html>
